import { request } from "@/utils/request";

export function getUser(params: Object) {
  return request({
    url: "api/users/getAllUsers.php",
    method: "GET",
    params,
  });
}
export function AddUser(params: Object) {
  return request({
    url: "api/users/addUsers.php",
    method: "GET",
    params,
  });
}
export function GetUserInfo(params: any) {
  return request({
    url: `api/users/getOneUsers.php`,
    method: "GET",
    params,
  });
}
export function EditUserInfo(params:any) {
  return request({
    url: `api/users/updateUsers.php`,
    method: "GET",
    params,
  });
}
export function DelUser(params: any) {
  return request({
    url: `api/users/delUsers.php`,
    method: "GET",
    params,
  });
}
